package com.zf.yichat.api.dto.request;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

/**
 * 信息收藏请求
 */
public class MessageCollectionRequest extends FsRequest{
    /**
     *  消息 ID
     */
    @Id
    private Integer id;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "friend_user_id")
    private String friendUserId;

    /**
     *  消息类型(0 文字，1 图片，2 音频，3 视频，4 文件)
     */
    private String type;

    /**
     * 类型为3时 缩略图链接
     */
    private String thumbnail;

    /**
     * 类型为0时存储文字， 类型为1 2 3 4时存储文件路径
     */
    private String content;

    /**
     *  类型为4时 文件名
     */
    private String filename;

    /**
     * 收藏时间
     */
    @Column(name = "collection_time")
    private Date collectionTime;

    public String getFriendUserId() {
        return friendUserId;
    }

    public void setFriendUserId(String friendUserId) {
        this.friendUserId = friendUserId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public Date getCollectionTime() {
        return collectionTime;
    }

    public void setCollectionTime(Date collectionTime) {
        this.collectionTime = collectionTime;
    }

    @Override
    public void valid() {

    }
}
